Q3Vector2D_Add
You can use theQ3Vector2D_Add
function to add two two-dimensional vectors.
TQ3Vector2D *Q3Vector2D_Add ( const TQ3Vector2D *v1, const TQ3Vector2D *v2, TQ3Vector2D *result);
v1
- A two-dimensional vector.
v2
- A two-dimensional vector.
result
- On exit, the sum of
v1
andv2
.DESCRIPTION
TheQ3Vector2D_Add
function returns, as its function result and in theresult
parameter, the two-dimensional vector that is the sum of the two vectorsv1
andv2
. Note that on entry theresult
parameter can be the same as eitherv1
orv2
(or both).